
<div class="tipbox tipbox-warning mb5">
    <span class="fn-fb">功能提示</span> : 团购联盟是基于公众号的转发下单赢红包的活动,支持随机红包大小和固定比例红包。<br />
    <span class="gray">
        1、A转发给朋友B下单，B下单购买A立即活动随机和固定大小红包,最多支持转发的转发二级奖励。<br />
        2、下单用户到商家打开活动页面,当面核销。
    </span>
</div>  
<div id="actionbar">
    <a href="{:url('manage.unmarket/add')}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>增加</a>
    <a href="{:url('manage.unmarket/booking')}" class="button button-green"> <i class="iconfont icon-list_icon"></i>预约商家</a>
</div>
<table class="table">
    <thead>
        <tr>
            <th class="w340">操作</th>
            <th>活动标题</th>          
            <th class="w100">购买金额</th>
            <th class="w140">开始时间</th>
            <th class="w140">结束时间</th>
            <th>入口网址</th>
            <th class="w50 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="button-group">
                <a class="button" href="{:url('manage.unmarket/order',['id'=>$vo.id])}" title="订单"><i class="iconfont icon-wodedingdan2"></i>订单</a>
                <a class="button" href="{:url('manage.unmarket/verification',['id'=>$vo.id])}" title="核销"><i class="iconfont icon-affirm_icon"></i>核销</a>
                <a class="button" href="{:url('manage.unmarket/edit',['id'=>$vo.id])}" title="修改"><i class="iconfont icon-edit"></i>编辑</a>
                <a class="button" href="{:url('manage.unmarket/store',['id'=>$vo.id])}" title="商家"><i class="iconfont icon-store_icon"></i>商家</a>
            </td>
            <td>{$vo.title}</td>
            <td>￥{$vo.price}</td>
            <td>{$vo.start_time|date='Y-m-d H:i'}</td>
            <td>{$vo.end_time|date='Y-m-d H:i'}</td>
            <td>
                <a class="trigger" href="javascript:;" rel="{:action("common/library/qrcode/create",['url'=>urls('allwin/unmarket/index',$member_miniapp_id,['id' =>$vo.id]),'qrname'=>md5('allwin_unmarket_'.$member_miniapp_id.'_'.$vo.id)], 'facade')}"><i class="iconfont icon-erweima1"></i>
                {:urls('allwin/unmarket/index',$member_miniapp_id,['id' =>$vo.id])}
                </a>
            </td>
            <td class="fn-tac">
                <a class="isDel" url="{:url('manage.unmarket/delete',['id'=>$vo.id])}" href="javascript:;" title="删除"><i class="iconfont icon-lajixiang"></i></a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base', 'layer','tip',function () {
    $('.isDel').isDel();
    $(".trigger").powerFloat({targetMode:"ajax"});
})
</script>